/**
 * 
 */
package org.istt.service.impl;

import java.util.List;

import org.istt.dao.SubCategoryDao;
import org.istt.domain.SubCategory;
import org.istt.service.SubCategoryManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Thond
 *
 */
@Service("subCategoryManager")
public class SubCategoryManagerImpl extends ManagerImpl<SubCategory, Long> implements SubCategoryManager {
	
	@Autowired
	public void setSubCategoryDao(SubCategoryDao dao) {
		this.dao = dao;
	}

	@Override
	public List<SubCategory> findByCategoryId(Long categoryId) {
		return ((SubCategoryDao)dao).findByCategoryId(categoryId);
	}

}
